﻿#pragma once

#include "Misc/EngineEditorMacros.h"
#include "Object/Object.h"
#include "MaterialGraphLinkModel.m.h"

class RMaterialGraphPinModel;

RCLASS(ExtraHeader = [ "MaterialGraph/Pin/MaterialGraphPinModel.h"])
class RMaterialGraphLinkModel : public RObject
{
    ROBJECT

public:

    //连接的起点，是一个输出引脚
    RFIELD()
    TSharedObjectPtr<RMaterialGraphPinModel> Start;

    //连接的终点，是一个输入引脚
    RFIELD()
    TSharedObjectPtr<RMaterialGraphPinModel> End;

    bool IsValid() const;

};